﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SurvivalStrategy.Entities.EnitityComponents;

namespace SurvivalStrategy.Entities.EnitityComponents
{
    public class SurvivalComponent : EntitiyComponent
    {
        public float MaxEnergy { get; internal set; }
        public float Energy { get; internal set; }

        public SurvivalComponent()
        {
        }

        public void UseEnergy(float f)
        {
        //    Energy -= f;
        }

        public void AddEnergy(float f)
        {
            Energy += f;
        }

        public void SetMaxEnergy(int maxEnergy)
        {
            MaxEnergy = maxEnergy;
            Energy = MaxEnergy;
        }
    }
}
